#!/bin/bash
# need imagemagic include convert

while [ $# -gt 0 ]; do
	picture=$1
	png_file=`echo "$picture" | sed 's/\.\w*$/.jpg/'`
	/usr/bin/convert "$picture" jpg:"$png_file"
	shift
done
